-
Notifications
You must be signed in to change notification settings - Fork 22.7k
Broken markdown conversion of “Enumerability and ownership of properties” #7342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
alerting @wbamberg |
I'm not quite sure what the issue is here, sorry. Is it that either of ex1 or ex2 should be being converted to MD but are staying in HTML? I haven't tried them, but looking at them I would expect:
Is that not what you are seeing, not what you would expect, or is the problem something else? |
I thought it was possible to convert to a markdown table according to the following principle, so it was a simple report. However, I don't know why the conversion doesn't work, so asking that makes issue confused.
I did not understand the expression of GFM block elements well. However, It seems to fit this principle. I make a draft and the UI of the table became beautiful from the user's point of view, but I am not sure if it improved in terms of readability from maintainer. In this case, would it be better to convert it to markdown?
|
If I understand you, I think it's probably best not to convert this table to Markdown. For one thing we lost the heading column but for another, as you say, the Markdown is very hard to read. I think Markdown tables work quite well for simple tables, especially where the cell contents is quite short. For example, some of the tables in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness look good in Markdown:
...but where the rows get very long the HTML version seems more readable to me. Does that make sense to you? |
Thank you for your kind reply. I think the condition for conversion based on readability should be explicitly included in that documentation. Or it seems like all conversions will be done indiscriminately with markdown. Next time, I will approach the problem with that thought in the conversion. Have a nice day! |
Thanks @hochan222 for being engaged with the Markdown conversion project!
I agree and have filed #7397 for this. |
Uh oh!
There was an error while loading. Please reload this page.
What page(s) did you find the problem on?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties
Specific page section or heading?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties#detecting_retrieving_and_enumerating_object_properties
What is the problem?
The conversion didn't work properly with markdown.
Link MDN Markdown
ex2 is a simplified version of the current documentation code. In the ex2, when I changed tr to td in tbody, it was converted well. However, looking at the ex1, it seems that there are other problems. The rule of the MDN markdown table all seem to be well maintained. What's the problem? (Of course, in ex1, tr was replaced with td in tbody.)
There is th in the body, so the conversion was not done.
What did you expect to see?
It should be converted to markdown.
Did you test this? If so, how?
no
The text was updated successfully, but these errors were encountered: